package com.zktr.pojo;
import java.util.List;

/*
 * ��ҳ��ʵ����
 * ��һ����ҳ����ͨ���������
 * �ڶ��������е����ͱ����Ƿ���

 * @author wdw
 * @param <T>
 */
public class PageBean<T> {
	private int pc;// ��ǰҳ��page code
//	private int tp;// ��ҳ��total page
	private int tr;// �ܼ�¼��total record
	private int ps;// ÿҳ��¼��page size
	private List<T> beanList;// ��ǰҳ�ļ�¼


	private String url;//������url���������


	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getPc() {
		return pc;
	}

	public void setPc(int pc) {
		this.pc = pc;
	}

	public int getTp() {

		int tp = tr / ps;
		return tr%ps==0 ? tp : tp+1;
	}



	public int getTr() {
		return tr;
	}

	public void setTr(int tr) {
		this.tr = tr;
	}

	public int getPs() {
		return ps;
	}

	public void setPs(int ps) {
		this.ps = ps;
	}

	public List<T> getBeanList() {
		return beanList;
	}

	public void setBeanList(List<T> beanList) {
		this.beanList = beanList;
	}

	public PageBean(int pc, int tr, int ps, List<T> beanList, String url) {
		super();
		this.pc = pc;
		this.tr = tr;
		this.ps = ps;
		this.beanList = beanList;
		this.url = url;
	}

	public PageBean() {

	}
	
	
}
